// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.supporter-perk-list-image {
  @top: supporter-perk-list-image;
  display: flex;
  padding: 20px;

  @media @mobile {
    flex-direction: column-reverse;
    padding-top: 0;
  }

  &--flipped {
    flex-direction: row-reverse;

    @media @mobile {
      flex-direction: column-reverse;
    }
  }

  &__content {
    margin: 0;
  }

  &__image {
    width: 1050px;
    height: 320px;
    border-radius: 10px;
    display: inline-block;
    overflow: hidden;

    @media @mobile {
      width: 100%;
    }
  }

  &__icon {
    color: #fff;
    font-size: 26px; // icon size
    padding: 0px 20px;
    margin-left: -45px;
    margin-top: 10px;

    @media @mobile {
      margin-left: 0;
      margin-top: 0;
    }

    .@{top}--flipped & {
      margin-left: 0;
      margin-right: -45px;

      @media @mobile {
        margin-right: 0;
      }
    }
  }

  &__icon-bg {
    color: @osu-colour-lime-3;
  }

  &__meta {
    display: flex;
    margin: 10px 0;

    @media @mobile {
      align-items: center;
    }

    .@{top}--flipped & {
      display: flex;
      flex-direction: row-reverse;

      @media @mobile {
        flex-direction: row;
      }
    }
  }

  &__text {
    padding: 10px;
    color: @osu-colour-f1;
    margin-top: 30px;
    margin-left: -20px;

    @media @mobile {
      margin-left: 0;
      margin-top: 0;
    }

    .@{top}--flipped & {
      margin-top: 30px;
      margin-left: 0;

      @media @mobile {
        margin-top: 0;
      }
    }
  }

  &__title {
    margin: 0 0 10px;
    font-size: 120%;
    color: white;
  }
}
